/* home.css */
body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f0f2f5;
    padding: 20px;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* 顶部标题栏 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
}

.title {
    font-size: 24px;
    color: #1890ff;
    font-weight: bold;
}

.week-info {
    text-align: center;
    font-size: 22px;
    margin: 15px 0;
    color: #1890ff;
    cursor: pointer;
}

.week-info:hover {
    text-decoration: underline;
}

/* 非本周提示 */
.non-current-week {
    color: #faad14;
    font-size: 16px;
    margin-left: 8px;
}

/* 课表表格 */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    border: 1px solid #e8e8e8;
    padding: 12px 8px;
    text-align: center;
    vertical-align: middle;
}

th {
    background-color: #fafafa;
    font-weight: bold;
}

th small {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.time-slot {
    background-color: #f9f9f9;
    font-weight: bold;
    width: 130px;
}

.course-cell {
    cursor: pointer;
    min-height: 60px;
    transition: background-color 0.2s;
}

.course-cell:hover {
    background-color: #e6f7ff;
}

.course-name {
    font-weight: bold;
    color: #1890ff;
}

.course-location {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* 弹窗通用样式 */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 20px;
    width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

/* 按钮微调 */
.el-button--small {
    padding: 6px 12px;
    font-size: 12px;
}

/* 设置弹窗菜单项 */
.setting-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
}

.setting-item:hover {
    background-color: #f5f5f5;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item i {
    margin-right: 10px;
    color: #1890ff;
}